//
//  removeSameNum.c
//  DiscreteMathematics
//
//  Created by Xavier on 2023/9/14.
//

#include <stdio.h>



int main() {
    int num, i = 0;
    scanf("%d", &num);
    int arr[100];
    while (num > 0) {
        scanf("%d", &arr[i]);
        i++;
    }
    int len = sizeof(arr) / sizeof(arr[0]);
    for (int i = 0; i < len; i++) {
        printf("%d ", arr[i]);
    }
    
}
